Arrays.sort() vs Collections.sort()


Posted by Rich on 2022-08-10

差別是:

  1. Collections 是給 List 用的,Arrays 是給 array 用的。
  2. Collections 用 binary sort, Arrays 用 merge sort

連結










Related Posts

Google python code style

Google python code style

Angular 9 implement a hover effect with directives

Angular 9 implement a hover effect with directives

Day03  自製收費廣告版位 - 使用 react-intersection-observer

Day03 自製收費廣告版位 - 使用 react-intersection-observer


Comments